/*
 * TetaEvaluationFunction.h
 *
 *  Created on: Sep 20, 2012
 *      Author: lfelipe
 */

#ifndef TETAEVALUATIONFUNCTION_H_
#define TETAEVALUATIONFUNCTION_H_

#include "EvaluationFunction.h"

class TetaEvaluationFunction: public EvaluationFunction
{
public:
    TetaEvaluationFunction(){}
    virtual ~TetaEvaluationFunction(){}


    double operator()(double value){
       /* if(value < 0.1){
            return value;
        }
        if( value < 0.5){
            return (10 * value);
        }
        if( value  < 0.8){
            return (100 * value);
        }*/

       if( value  < 0.9){
           return 0;
           //return value;
            //return (1000 * value);
        }
       return 1;
//        if( value  < 1.1){
//            return (10000 * value);
//        }
//        if( value  <= 2){
//            //return (100000 * value);
//            return (10000);
//        }
//          return value;
    }

    virtual double getValue(double value){
        return operator()(value);
    }

    virtual std::string getName() const{
        return "Teta Function";
    }
};

#endif /* TETAEVALUATIONFUNCTION_H_ */
